<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	var base = "${base}/";
</script>
<!--框架必需-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery-1.7.1.js"></script>
<script type="text/javascript" src="${base}/scripts/framework.js"></script>
<link href="${base}/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="${base}/css/sky/style.css" rel="stylesheet" type="text/css" />
<!--表单验证脚本-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery.validate.min.js"></script>
<script src="${base}/js/verify-url-add.js" type="text/javascript"></script>
</head>
<body>
<div class="position">
		<div class="center">
			<div class="left">
				<div class="right">
					<span>当前位置：资源管理 >> 新增资源</span>
				</div>
			</div>
		</div>
	</div>
<div class="box1" whiteBg="true">
	<form action="${base}/oauth/roleUrl/addRoleUrl.action" id="add_url_form" target="url_left">
	<table class="tableStyle" transMode="true">
		<tr>
			<input type="hidden" id="roleUrl.id" value="${(roleUrl.id)!''}"/>
			<td>资源名称：</td>
			<td>
				<input type="text" name="roleUrl.name" id="roleUrl.name" class="text_style"/>
				<span class="star">*</span>
				<span class="verror"></span>
			</td>
		</tr>
		<tr>
			<td>URL地址：</td>
			<td>
				<input type="text" style="width:200px;" name="roleUrl.url" id="roleUrl_url" class="text_style"/>
				<span class="star">*</span>
				<span class="verror"></span>
			</td>
		</tr>
		<tr>
			<td>选择组别：</td>
			<td>
				<select name="roleUrl.parentId">
					<option value="0">==根节点==</option>
					<#list roleUrlList as rolesUrl>
						<#if roleUrl.id == rolesUrl.id>
							<option value="${(rolesUrl.id)!''}" selected="selected">${(rolesUrl.name)!''}</option>
							<input type="hidden" name="roleUrl.orderNo" value="${(((rolesUrl.roleUrlList)?size) + 1)!0}">
						<#else>
							<option value="${(rolesUrl.id)!''}">${(rolesUrl.name)!''}</option>
						</#if>
					</#list>
				</select>
				<span class="star">*</span>
			</td>
		</tr>
		<tr>
			<td>是否在菜单上显示：</td>
			<td>
				<select name="roleUrl.isShow">
					<option value="1">显示</option>
					<option value="0">不显示</option>
				</select>
				<span class="star">*</span>
			</td>
		</tr>
		<tr>
			<td>资源描述：</td>
			<td>
				<textarea name="roleUrl.description" id="roleUrl.description" class="textarea_style"></textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="submit" class="button" value="提 交 "/>
				<input type="reset" class="button" value="重 置 "/>
				<input type="button" class="button" onclick="top.Dialog.close()" value="取消"/>
			</td>
		</tr>
	</table>
	</form>
</div>
</body>
</html>